package com.yhs.best;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class MainActivity extends Activity {
	TextView choose;
	Button news,contact, guide, fun2;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		news = (Button) findViewById(R.id.news);
		contact = (Button) findViewById(R.id.contact);
		guide = (Button) findViewById(R.id.bGuide);
		fun2 = (Button) findViewById(R.id.Button03);
		
		
		news.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent openNews = new Intent("com.yhs.best.NEWS");
				startActivity(openNews);
			}		});
		
		contact.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent openContact = new Intent("com.yhs.best.CONTACT");
				startActivity(openContact);
			}		});
		
		guide.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent openguidechooser = new Intent("com.yhs.best.GUIDECHOOSER");
				startActivity(openguidechooser);
			}		});
		
		fun2.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent openfun2 = new Intent("com.yhs.best.UNUSED");
				startActivity(openfun2);
			}		});
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}

}
